<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <title>班级说说--更改头像</title>

    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            padding-top: 10px;
        }

        #err {
            display: none;
        }
    </style>
</head>

<body>
    <% include header.ejs %>
        <div class="container jumbotron">
            <h3>上传头像</h3>
            <form method="post" action="/dosetavatar" enctype="multipart/form-data">
                <div class="form-group">
                    <label for="exampleInputEmail1">选择图片</label>
                    <input type="file" class="form-control" id="file" name="file" placeholder="可以是中文，但是不能重复">
                </div>
                <input type="submit" value="上传">
            </form>
        </div>
        <div class="alert alert-danger" role="alert" id="err"></div>
        <!-- Bootstrap core JavaScript
    ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
        <script src="js/jquery-1.9.1.js"></script>
        <script src="js/bootstrap.min.js"></script>
</body>

</html>